package com.os.model.system;

import java.util.Date;
import java.util.List;

/**
 * @Author Matt
 * @Date 2022-07-08
 * @Desc:
 * @Version V1.0
 */
public class SysRole {

    //角色ID
    private Long id;
    //角色名
    private String roleName;
    //有效标示
    private Long enabled;
    //创建人
    private Long createBy;
    //创建时间
    private Date createTime;
    //用户信息
    private SysUser sysUser;

    private List<SysPrivilege> privilegeList;

    //创建信息
    private CreateInfo createInfo;

    @Override
    public String toString() {
        return "SysRole{" +
                "id=" + id +
                ", roleName='" + roleName + '\'' +
                ", enabled=" + enabled +
                ", createBy=" + createBy +
                ", createTime=" + createTime +
                ", sysUser=" + sysUser +
                ", privilegeList=" + privilegeList +
                ", createInfo=" + createInfo +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Long getEnabled() {
        return enabled;
    }

    public void setEnabled(Long enabled) {
        this.enabled = enabled;
    }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public List<SysPrivilege> getPrivilegeList() {
        return privilegeList;
    }

    public void setPrivilegeList(List<SysPrivilege> privilegeList) {
        this.privilegeList = privilegeList;
    }

    public CreateInfo getCreateInfo() {
        return createInfo;
    }

    public void setCreateInfo(CreateInfo createInfo) {
        this.createInfo = createInfo;
    }
}
